From: kaf24@scramble.cl.cam.ac.uk Date: Sat, 5 Mar 2005 11:21:06 +0000 (+0000) Subject: bitkeeper revision 1.1236.1.60 (42299622PoSV4xT6Ds22AHb8mP24xA) X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~17857^2~69 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:///%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22man:/?a=commitdiff_plain;h=8d22f23fd3ec37c55aaefeefc366d920ebe80e61;p=xen.git bitkeeper revision 1.1236.1.60 (42299622PoSV4xT6Ds22AHb8mP24xA) XCS binds thru /var/lib/xen and gives better error message if this fails. Signed-off-by: Muli Ben-Yahuda Signed-off-by: Keir Fraser --- diff --git a/tools/misc/xend b/tools/misc/xend index e4cd65271f..4a6a09f294 100644 --- a/tools/misc/xend +++ b/tools/misc/xend @@ -24,7 +24,7 @@ import sys import socket import time -XCS_PATH = "/var/xen/xcs_socket" +XCS_PATH = "/var/lib/xen/xcs_socket" XCS_EXEC = "/usr/sbin/xcs" XCS_LOGFILE = "/var/log/xcs.log" diff --git a/tools/xcs/xcs.c b/tools/xcs/xcs.c index 583bef3cc9..79342dc444 100644 --- a/tools/xcs/xcs.c +++ b/tools/xcs/xcs.c @@ -241,7 +241,7 @@ static int listen_socket (char *listen_path) if (bind(s, (struct sockaddr *) &a, sizeof (a)) < 0) { - perror ("bind"); + fprintf (stderr, "bind('%s'): %s\n", listen_path, strerror(errno)); close (s); return -1; } diff --git a/tools/xcs/xcs_proto.h b/tools/xcs/xcs_proto.h index 10ac7dafed..fa04621f40 100644 --- a/tools/xcs/xcs_proto.h +++ b/tools/xcs/xcs_proto.h @@ -9,7 +9,7 @@ #ifndef __XCS_PROTO_H__ #define __XCS_PROTO_H__ -#define XCS_SUN_PATH "/var/xen/xcs_socket" +#define XCS_SUN_PATH "/var/lib/xen/xcs_socket" /* xcs message types: */ #define XCS_CONNECT_CTRL 0 /* This is a control connection. */